#include "HttpServer.hpp"
#include <iostream>
#include <memory>
#include <pthread.h>
// #include "Log.hpp"

void Usage(const std::string &proc)
{
    std::cout << "\nUsage: " << proc << "[port1024+]\n" << std::endl;
}

// ./Httpserver port
int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(0);
    }

    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<HttpServer> svr(new HttpServer(port));
    svr->Start();
    
    return 0;
}